﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using RayDen.Library.Components.Surface;
using RayDen.Library.Entity.Scene;

namespace RayDen.MaterialManager.Controls
{
    public partial class EditSurfaceBsdfForm : Form, IEditForm<SurfaceBsdf>
    {
        public string ValueName { get; set; }
        public SurfaceBsdf Value { get; set; }


        protected MaterialInfo matInfo;

        public EditSurfaceBsdfForm()
        {
            InitializeComponent();
        }

        private void EditSurfaceMaterialForm_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource = Enum.GetValues(typeof(BrdfClass));

            if (this.Value == null)
            {
                matInfo = new MaterialInfo();
            }
            else
            {
                matInfo = Value.MaterialData;
            }

            propertyGrid1.SelectedObject = matInfo;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            //this.Value
        }


    }
}
